{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "9d9e08cb",
   "metadata": {},
   "source": [
    "# 作业\n",
    "## 尝试搜索POI 2.0\n",
    "## 获取中餐厅、西餐厅、快餐厅的信息（图片、内容等）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f8c36d12",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区|k11\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"city_limit\":\"true\",\n",
    "    \"page_size\":\"8\",\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "79d7a2ab",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "2ca2a46a",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '广东省',\n",
       "   'id': 'B00141JEHR',\n",
       "   'location': '113.266887,23.133306',\n",
       "   'type': '地名地址信息;普通地名;省级地名',\n",
       "   'typecode': '190102',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '越秀区',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '天河区',\n",
       "   'id': 'B00140TTQZ',\n",
       "   'location': '113.361597,23.124817',\n",
       "   'type': '地名地址信息;普通地名;区县级地名',\n",
       "   'typecode': '190105',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '天河区',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106'},\n",
       "  {'name': '广州市',\n",
       "   'id': 'B00141JEHS',\n",
       "   'location': '113.264499,23.130061',\n",
       "   'type': '地名地址信息;普通地名;地市级地名',\n",
       "   'typecode': '190104',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '越秀区',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广东省人民政府',\n",
       "   'id': 'B001403B27',\n",
       "   'location': '113.266887,23.133306',\n",
       "   'type': '政府机构及社会团体;政府机关;省直辖市级政府及事业单位',\n",
       "   'typecode': '130102',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '东风中路305号(纪念堂地铁站D2口步行400米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广州市站(公交站)',\n",
       "   'id': 'BV10461207',\n",
       "   'location': '113.252136,23.147329',\n",
       "   'type': '交通设施服务;公交车站;公交车站相关',\n",
       "   'typecode': '150700',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '广州市站-佛山汽车站',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广州站',\n",
       "   'id': 'B00140WEW0',\n",
       "   'location': '113.257331,23.149243',\n",
       "   'type': '交通设施服务;火车站;火车站',\n",
       "   'typecode': '150200',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '环市西路159号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'},\n",
       "  {'name': '广州K11购物艺术中心',\n",
       "   'id': 'B0FFH11BOI',\n",
       "   'location': '113.326132,23.117789',\n",
       "   'type': '购物服务;商场;购物中心',\n",
       "   'typecode': '060101',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '珠江东路6号(花城大道地铁站B口步行230米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106'},\n",
       "  {'name': '广东省人民医院东病区停车场',\n",
       "   'id': 'B00140U48T',\n",
       "   'location': '113.288679,23.123910',\n",
       "   'type': '交通设施服务;停车场;专用停车场',\n",
       "   'typecode': '150905',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '中山二路蟾蜍岗3号(烈士陵园地铁站B3口步行470米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104'}],\n",
       " 'count': '8'}"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8a6b5308",
   "metadata": {},
   "source": [
    "# 获取中餐厅、西餐厅、快餐厅的信息（图片、内容等）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "c72a2bd7",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 中餐厅"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "e9846c9c",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区\",\n",
    "    \"types\":\"050100\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"show_fields\":\"business,photos\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "e032632f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "bbf21929",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '华哥私厨-原醉琼楼',\n",
       "   'id': 'B00140H2WE',\n",
       "   'location': '113.252061,23.121695',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'typecode': '050103',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '光复北路443号华哥私厨-原醉琼楼',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '龙津',\n",
       "    'tel': '020-81879777;13802740346',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.3',\n",
       "    'cost': '86.00',\n",
       "    'opentime_today': '11:00-21:30',\n",
       "    'opentime_week': '11:00-21:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d74ebdc4a69d848a6271af21b8de037d'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/61a5005597edd5a1c6315b24a6ee9b63'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydiMcoMFThdn8_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '北江吃鱼专门店(美术学院店)',\n",
       "   'id': 'B00140BZBH',\n",
       "   'location': '113.279618,23.084728',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '江南大道南435号首层(江泰路地铁站C口步行260米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '晓港',\n",
       "    'tel': '020-84428783;13632496973',\n",
       "    'rectag': '中餐',\n",
       "    'keytag': '中餐',\n",
       "    'rating': '4.8',\n",
       "    'cost': '59.00',\n",
       "    'opentime_today': '07:00-14:30 17:00-22:30',\n",
       "    'opentime_week': '07:00-14:30；17:00-22:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d9e36c0767fe6e96841e11b7c4d9ab8'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/350d88aa47259417210b41a6911b535f'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/657a5294f530461521f58fc81017842f'}]},\n",
       "  {'name': '百花园酒家',\n",
       "   'id': 'B00140CPGP',\n",
       "   'location': '113.796488,23.310418',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'typecode': '050101',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '荔城大道百花路88号百花山庄度假村内',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'tel': '020-82610627',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.1'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/51e40c803e93af974074931ddf8f6b54'}]},\n",
       "  {'name': '常湘聚土菜馆(横枝岗路店)',\n",
       "   'id': 'B0FFFHUVTF',\n",
       "   'location': '113.286960,23.145939',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '横枝岗56号大院旁',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104',\n",
       "   'business': {'business_area': '登峰',\n",
       "    'tel': '020-83498683',\n",
       "    'tag': '让鸭之飞,萝卜丝鲫鱼汤,秘制烤鱼,下饭卜藕尖,灰树菌鸡汤,白辣椒炒肚尖,家乡石锅米豆腐,小炒腊牛肉,长豆角粒炒肉沫,红烧鱼块,泉水煮活鱼,五园整鸡,一品过江鱼,招牌爽滑酸菜鱼,小炒子姜鸡,新派扣肉,香煎刁子鱼,荷包蛋焖黄骨鱼,烟笋腊肠,扁豆丝炒腊肉',\n",
       "    'rectag': '农家菜',\n",
       "    'keytag': '农家菜',\n",
       "    'rating': '4.5',\n",
       "    'cost': '60.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/914d708ea3ecc311042fb671e3dcbee7'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/29df222db6bcaf0d1f569d124c27f4a7'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/267439fc08b5a8eb704c61625813f3ef'}]},\n",
       "  {'name': '色色自选沙拉(中山八店)',\n",
       "   'id': 'B0FFI5OO7E',\n",
       "   'location': '113.238679,23.129955',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '西关中兴苑小区周门街东',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '西关',\n",
       "    'tel': '13826279958',\n",
       "    'rectag': '西餐',\n",
       "    'keytag': '西餐',\n",
       "    'rating': '4.5',\n",
       "    'cost': '21.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/705ccdb538c3c1ade2b111711f3169bd'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/137ddd7f0a8970e7be34eb3bd0b3af3f'}]},\n",
       "  {'name': '众喜酒家(东圃旗舰店)',\n",
       "   'id': 'B0FFGDRN3R',\n",
       "   'location': '113.408762,23.112469',\n",
       "   'type': '餐饮服务;中餐厅;海鲜酒楼',\n",
       "   'typecode': '050119',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '东圃前进街石宦路9号(前进小学西门对面)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '前进',\n",
       "    'tel': '020-82599813;020-82599239',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.6',\n",
       "    'cost': '55.00',\n",
       "    'opentime_today': '09:00-21:30',\n",
       "    'opentime_week': '09:00-21:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e414af30083020b290df9d58756c6396'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/77c697f6b381c12671fabf322cd23dc6'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN01OjALKm1IydjGcoT7x_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '兴隆食府(石牌店)',\n",
       "   'id': 'B00141RH6S',\n",
       "   'location': '113.341277,23.127523',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '石牌豪居口4号1楼部位自编101单元',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'tel': '020-85516932',\n",
       "    'rectag': '中餐',\n",
       "    'keytag': '中餐',\n",
       "    'rating': '4.6',\n",
       "    'cost': '54.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/153f46b66ede7829c781235ab486ac42'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bfbfe59f2d9c008de7c5202fbf47a9a5'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/216f7bcdd0e2ca716b67a1464c41721e'}]},\n",
       "  {'name': '中国兰州牛肉拉面(人民北路)',\n",
       "   'id': 'B00140RXE0',\n",
       "   'location': '113.254495,23.126052',\n",
       "   'type': '餐饮服务;中餐厅;清真菜馆',\n",
       "   'typecode': '050121',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '人民北路677号(西门口地铁站D口步行190米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '西门口',\n",
       "    'tel': '18697229227',\n",
       "    'rectag': '拉面',\n",
       "    'keytag': '拉面',\n",
       "    'rating': '4.4',\n",
       "    'cost': '17.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a2d77d3fcec87b3feed146e35f842080'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c7f69121765bd5b5f1cb11b22221f6e4'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/18fd43bb88ea897a418776b9546e672b'}]},\n",
       "  {'name': '半山酒家',\n",
       "   'id': 'B0FFGWILYQ',\n",
       "   'location': '113.317668,23.213855',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'typecode': '050101',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '白云区',\n",
       "   'address': '君源山庄内',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440111',\n",
       "   'business': {'business_area': '白云大道',\n",
       "    'tel': '020-37247994;020-37247910',\n",
       "    'rectag': '粤菜',\n",
       "    'keytag': '粤菜',\n",
       "    'rating': '4.4',\n",
       "    'cost': '115.00',\n",
       "    'opentime_today': '11:00-21:00',\n",
       "    'opentime_week': '11:00-21:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d5252e1427d024800492a379c92e15b'}]},\n",
       "  {'name': '太湖烧鸡(太和店)',\n",
       "   'id': 'B00140W43A',\n",
       "   'location': '113.429835,23.304969',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '白云区',\n",
       "   'address': '太和镇头陂村',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440111',\n",
       "   'business': {'rectag': '烧鸡',\n",
       "    'keytag': '烧鸡',\n",
       "    'rating': '4.5',\n",
       "    'cost': '53.00',\n",
       "    'opentime_today': '10:00-22:00',\n",
       "    'opentime_week': '10:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1052e73c42c582a60ff14ad5887bd8b1'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/252ac5709c45e5c7b325191adb00de34'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/45fe116899dd6a405743bdbaf539cd1a'}]}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "721f682e",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区\",\n",
    "    \"types\":\"050200\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"show_fields\":\"business,photos\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "de87c6ad",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "6a9e9bc7",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '芭堤',\n",
       "   'id': 'B0FFHOJJI6',\n",
       "   'location': '113.406583,22.940373',\n",
       "   'type': '餐饮服务;外国餐厅;泰国/越南菜品餐厅',\n",
       "   'typecode': '050206',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '番禺区',\n",
       "   'address': '大龙街傍江西村泰兴路广场01号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440113',\n",
       "   'business': {'business_area': '石碁',\n",
       "    'tel': '15919673022;020-31128388',\n",
       "    'keytag': '餐饮服务,外国餐厅,泰国/越南菜品餐厅',\n",
       "    'rating': '4.5',\n",
       "    'cost': '97.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c0e9794db69e00ac371165c37a25bc96'}]},\n",
       "  {'name': '红灯笼(天河店)',\n",
       "   'id': 'B00140T30R',\n",
       "   'location': '113.329018,23.144991',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '林和东路126号B1层(广东烟草大厦对面)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '林和',\n",
       "    'tel': '020-38800886',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.5',\n",
       "    'cost': '143.00'},\n",
       "   'photos': [{'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/675c9f53c8fb0daae431078670ae8991'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/573c36617ac63a4f2733ce0d'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i4/3695320962/O1CN011IydfshTdXOt37e_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': '承家韩园韩国料理',\n",
       "   'id': 'B0FFFWWWJT',\n",
       "   'location': '113.311094,23.094322',\n",
       "   'type': '餐饮服务;外国餐厅;韩国料理',\n",
       "   'typecode': '050203',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '敦和路愉景南苑1020号(近鹭江地铁站344米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '新港',\n",
       "    'tel': '13570598234',\n",
       "    'tag': '调味猪颈肉,石锅拌饭,泡菜饼,泡菜炒饭,泡菜豆芽汤,烤五花肉,调味牛排,炸酱面,五花肉,土豆饼,荞麦冷面,辣椒饼,清国酱汤,海带汤饭,辛拉面,拌冷面,石锅牛肉饭,泡菜汤,牛肉石锅拌饭,紫菜包饭',\n",
       "    'rectag': '韩国料理',\n",
       "    'keytag': '韩国料理',\n",
       "    'rating': '4.6',\n",
       "    'cost': '82.00',\n",
       "    'opentime_today': '11:00-15:00 17:00-22:00',\n",
       "    'opentime_week': '11:00-15:00；17:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1118dca52b29967feeaa6c60a99d64fd'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1442f8033a92974878c63926af535956'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/342b060a55e13998fbd53474836ab0a7'}]},\n",
       "  {'name': '喜连川日本料理',\n",
       "   'id': 'B0FFHHXJ5J',\n",
       "   'location': '113.576769,23.127132',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '新塘镇凤凰城交通中心广场大街99号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '新塘',\n",
       "    'tel': '18929586321',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.3',\n",
       "    'cost': '167.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3418e86d3ab573658dcf09b40a4ecf46'}]},\n",
       "  {'name': '七月里精品咖啡馆',\n",
       "   'id': 'B0FFI7MRMK',\n",
       "   'location': '113.335594,23.139392',\n",
       "   'type': '餐饮服务;外国餐厅;外国餐厅',\n",
       "   'typecode': '050200',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '龙口西路龙盛街36-6号铺',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '五山',\n",
       "    'tel': '18316636628',\n",
       "    'rectag': '咖啡',\n",
       "    'keytag': '咖啡',\n",
       "    'rating': '4.3',\n",
       "    'cost': '36.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/3695320962/O1CN011IydiXuTklU8Sfa_!!3695320962-0-kbcontentapng.jpg'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i2/3695320962/O1CN011IydiQhj9GZhfvc_!!3695320962-0-kbcontentapng.jpg'},\n",
       "    {'title': '',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i2/3695320962/O1CN011IydiQhj9Gc5d7A_!!3695320962-0-kbcontentapng.jpg'}]},\n",
       "  {'name': 'AL MANARA(中山八路店)',\n",
       "   'id': 'B0FFHJEWZP',\n",
       "   'location': '113.240102,23.125176',\n",
       "   'type': '餐饮服务;外国餐厅;西餐厅(综合风味)',\n",
       "   'typecode': '050201',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '中山八路富力商贸大厦一楼东侧(圣玛登酒店对面)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '西关',\n",
       "    'tel': '020-81978629;13422222994',\n",
       "    'rectag': '西餐',\n",
       "    'keytag': '西餐',\n",
       "    'rating': '4.3',\n",
       "    'cost': '69.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/74f088f52281bca20bba6b2d21dc9a7f'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2667b4076c9b349fbe60d3b29260e661'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/42663ee46a081145cb171ece9176039e'}]},\n",
       "  {'name': '一旬料理',\n",
       "   'id': 'B0FFHU0EI2',\n",
       "   'location': '113.212578,23.077158',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '荔湾区',\n",
       "   'address': '龙溪中路邦华星际广场2栋(中国建设银行旁)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440103',\n",
       "   'business': {'business_area': '龙溪',\n",
       "    'tel': '13632413001',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.3',\n",
       "    'cost': '70.00',\n",
       "    'opentime_today': '10:00-22:00',\n",
       "    'opentime_week': '10:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e13d25ac3932ed43ead1584146f9f4ed'}]},\n",
       "  {'name': '小禅日本料理',\n",
       "   'id': 'B0FFHIVTLT',\n",
       "   'location': '113.320653,23.139720',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '体育西路191号中石化大厦外围一楼兆业街(门头挂灯笼)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '林和村',\n",
       "    'tel': '020-85202064;18998412706',\n",
       "    'tag': '梅肉煮秋刀鱼,牛舌厚切,猪骨汤拉面,五色刺身组合',\n",
       "    'rectag': '日本料理',\n",
       "    'keytag': '日本料理',\n",
       "    'rating': '4.6',\n",
       "    'cost': '92.00',\n",
       "    'opentime_today': '11:00-22:00',\n",
       "    'opentime_week': '11:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/054d0dbefc927f5fe4a00f69f137804e'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ba14644467a34929e1e198f9e5cb1254'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/064b3b657c48909d7ce1bad8a98ca6ff'}]},\n",
       "  {'name': '牛派牛扒小馆(番禺店)',\n",
       "   'id': 'B0FFH34BFP',\n",
       "   'location': '113.390799,22.933608',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '番禺区',\n",
       "   'address': '东怡新区二街25号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440113',\n",
       "   'business': {'business_area': '市桥',\n",
       "    'tel': '13332889583',\n",
       "    'tag': '茄汁鸡扒意粉',\n",
       "    'rectag': '牛排',\n",
       "    'keytag': '牛排',\n",
       "    'rating': '4.4',\n",
       "    'cost': '66.00',\n",
       "    'opentime_today': '10:50-14:30 17:00-21:31',\n",
       "    'opentime_week': '10:50-14:30；17:00-21:31'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39a4c6ed62a6a0d619ee2ed4c3b3df8d'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1fb1245333aa83d06b7893874c0611d1'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/76d65029d5098e0920c367076f355cc8'}]},\n",
       "  {'name': '古田居特色寿司料理(新塘汇创店)',\n",
       "   'id': 'B0FFFYI7SI',\n",
       "   'location': '113.615287,23.124264',\n",
       "   'type': '餐饮服务;外国餐厅;日本料理',\n",
       "   'typecode': '050202',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '新塘镇东坑三横中路1号3栋首层131号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '新塘',\n",
       "    'tel': '020-32897767',\n",
       "    'tag': '章红鱼薄切,铁板雪花牛肉粒,鹅肝寿司,古田居特色地狱花螺,日式蟹皇粥,生蚝大蚬辣锅花螺大蚬辣锅,极品三文鱼寿司盛宴,汁烧厚鳗鱼寿司,古田居帝皇沙拉,大虾天妇罗,金雕活造,俄罗斯小海螺,极上香芝海老焗,香芒苹果丝沙拉,和牛炒日本青黄瓜,冷鹅肝,酥皮鳗鱼披萨,法国鹅肝蟹籽炒饭,牛油果鹅肝鱼腩,松刺身拼盘,纹甲鱿鱼刺身三食,火炙蟹棒寿司,卜卜脆鹅肝,火焰石雪龙和牛,明太子烤蘑菇,霸气蟹柳,芦笋新作,帝皇火炙拼盘',\n",
       "    'rectag': '时尚日式料理店',\n",
       "    'keytag': '寿司',\n",
       "    'rating': '4.7',\n",
       "    'cost': '105.00',\n",
       "    'opentime_today': '11:30-15:00 17:00-22:00',\n",
       "    'opentime_week': '11:30-15:00；17:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39e40e8a38528e3bac58b94e606ea6d3'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/be1cd53fd7358f5a706167366c0d5da9'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/616ec67294ac72320dadbb1ed650a4cd'}]}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "d41456d8",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 1.调用request模块\n",
    "import requests\n",
    "# 2.请求方法：GET\n",
    "# 3.URL地址：https://restapi.amap.com/v5/place/text?parameters\n",
    "place_url = \"https://restapi.amap.com/v5/place/text?parameters\"\n",
    "# 4.准备参数，用于交换数据的payload\n",
    "payload={\n",
    "    \"key\":\"c32566670faf404dfa55e752848209f5\",\n",
    "    \"keywords\":\"广东省|广州市|天河区\",\n",
    "    \"types\":\"050300\",\n",
    "    \"region\":\"广州市\",\n",
    "    \"show_fields\":\"business,photos\"\n",
    "}\n",
    "# 5.发起请求\n",
    "r = requests.get(url=place_url,params=payload)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "b58510e2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "86054dd5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '正宗果陇粿汁(中大店)',\n",
       "   'id': 'B0FFG92YRY',\n",
       "   'location': '113.292324,23.084712',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '海珠区',\n",
       "   'address': '兴隆大街9号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440105',\n",
       "   'business': {'business_area': '凤阳',\n",
       "    'tel': '13592941598',\n",
       "    'rectag': '快餐',\n",
       "    'keytag': '快餐',\n",
       "    'rating': '4.2'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/57032a86ea4beadfa2550af139869740'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/602e48976580ae222acd9befbd724e7f'},\n",
       "    {'title': '粿汁汤+新鲜猪肉猪杂汤（份）',\n",
       "     'url': 'https://img.alicdn.com/imgextra/i1/2206672736158/O1CN018JiCz51vMPaMjNbHM_!!2206672736158-0-koubei.jpg'}]},\n",
       "  {'name': '老字号桂林米粉(长南大街店)',\n",
       "   'id': 'B00140KVMY',\n",
       "   'location': '113.352782,23.168637',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '长兴路长湴市场37号铺',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '长兴',\n",
       "    'tel': '13422099449;020-37081515;020-38043967',\n",
       "    'rectag': '米粉',\n",
       "    'keytag': '米粉',\n",
       "    'rating': '4.5',\n",
       "    'cost': '10.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3cde2ffb2617bdf0c5ce16378de75573'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/76acbd9bdbdaef434b9caa868920f552'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8c7da21f38f93249764a3c4d9104f15a'}]},\n",
       "  {'name': '河南烩面',\n",
       "   'id': 'B0FFG1YR57',\n",
       "   'location': '113.281070,23.126183',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '越秀区',\n",
       "   'address': '中山三路东昌大街32号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440104',\n",
       "   'business': {'business_area': '建设',\n",
       "    'rectag': '烩面',\n",
       "    'keytag': '烩面',\n",
       "    'rating': '4.5',\n",
       "    'cost': '14.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/256a27ad4ef87adc26c4264a78a73149'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3f9729b3bf2a9366a7ca908cf5cdb6db'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/84a798514e52622b356a8bef109acbe5'}]},\n",
       "  {'name': '丽昌茶餐厅',\n",
       "   'id': 'B00141J5EJ',\n",
       "   'location': '113.512987,22.825651',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅',\n",
       "   'typecode': '050305',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '南沙区',\n",
       "   'address': '麒龙东路65号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440115',\n",
       "   'business': {'business_area': '黄阁',\n",
       "    'tel': '020-39092520',\n",
       "    'rectag': '茶餐厅',\n",
       "    'keytag': '茶餐厅',\n",
       "    'rating': '4.5',\n",
       "    'cost': '23.00',\n",
       "    'opentime_today': '08:00-22:00',\n",
       "    'opentime_week': '08:00-22:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b8d4727a09d6933bd8e142b405931b84'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3788f8261541d41b3b3d5fa4ae94bcf9'}]},\n",
       "  {'name': '翠味港式茶餐厅',\n",
       "   'id': 'B00141I763',\n",
       "   'location': '113.588905,23.136978',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅',\n",
       "   'typecode': '050305',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '增城区',\n",
       "   'address': '新塘镇凤凰城东门商业街226号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440118',\n",
       "   'business': {'business_area': '新塘',\n",
       "    'tel': '020-82457837;020-82809003',\n",
       "    'rectag': '茶餐厅',\n",
       "    'keytag': '茶餐厅',\n",
       "    'rating': '4.4',\n",
       "    'cost': '43.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/24c2019a5bfd3e5d5160ba0ea56734e3'}]},\n",
       "  {'name': '瑞丰茶馆(天河店)',\n",
       "   'id': 'B00140NZ1T',\n",
       "   'location': '113.330876,23.142922',\n",
       "   'type': '餐饮服务;快餐厅;茶餐厅|餐饮服务;茶艺馆;茶艺馆',\n",
       "   'typecode': '050305|050600',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '天河北路林和街240号远东大厦1层',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '林和村',\n",
       "    'tel': '020-38861988',\n",
       "    'tag': '肉饼炖冬虫草,干鲍,七菜煲,鹅头,青瓜炒象拔蚌,清汤翅,春草煲,薏米海参',\n",
       "    'rectag': '茶座',\n",
       "    'keytag': '茶座',\n",
       "    'rating': '4.6',\n",
       "    'cost': '251.00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/56fcca55a3105a2790ed8e69'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/55eec5c1a31049f0a1950edc'}]},\n",
       "  {'name': '大碗厨木桶饭',\n",
       "   'id': 'B0FFHQYTWD',\n",
       "   'location': '113.501163,22.849975',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '南沙区',\n",
       "   'address': '黄阁镇留东村留新路3号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440115',\n",
       "   'business': {'business_area': '黄阁',\n",
       "    'tel': '15367199939;13316076960',\n",
       "    'rectag': '木桶饭',\n",
       "    'keytag': '木桶饭',\n",
       "    'rating': '4.3'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b9414acf1b35300534aad24a6f4a5f56'}]},\n",
       "  {'name': '木桶饭(培正店)',\n",
       "   'id': 'B0FFK1UQZB',\n",
       "   'location': '113.092680,23.407290',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '花都区',\n",
       "   'address': '赤坭镇培正路58号B栋之14',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440114',\n",
       "   'business': {'business_area': '赤坭村',\n",
       "    'tel': '13421913795;19817070292',\n",
       "    'rectag': '小吃快餐',\n",
       "    'keytag': '小吃快餐',\n",
       "    'rating': '4.3',\n",
       "    'cost': '14.00',\n",
       "    'opentime_today': '10:00-13:30 16:00-20:30',\n",
       "    'opentime_week': '10:00-13:30；16:00-20:30'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/19c3017785cc7e9580bb8670521c5ec6'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3cd5262fdf9760cfce85728829374350'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3e688117e2532489c0cbb0b28008eaf9'}]},\n",
       "  {'name': '三竖韩国烤肉拌饭',\n",
       "   'id': 'B0FFGX3F7X',\n",
       "   'location': '113.449353,23.368059',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '白云区',\n",
       "   'address': '钟落潭镇马洞秀水三横巷10号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440111',\n",
       "   'business': {'tel': '18520072006',\n",
       "    'rectag': '快餐',\n",
       "    'keytag': '快餐',\n",
       "    'rating': '4.3',\n",
       "    'cost': '23.00',\n",
       "    'opentime_today': '10:00-14:00 16:00-20:00',\n",
       "    'opentime_week': '每天10:00-14:00；每天16:00-20:00'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0196699ac6a34a00cc677a3ce5e90eb7'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/01cbe71bf79d88eea9ff61e97545d11b'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/023717baa9973c3abfd5b3282bf1fcd1'}]},\n",
       "  {'name': '揭阳砂锅粥',\n",
       "   'id': 'B0FFHRCBKU',\n",
       "   'location': '113.399923,23.195539',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '天河区',\n",
       "   'address': '柯木塱新村大街顺兴百货商场门口',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440106',\n",
       "   'business': {'business_area': '柯木塱村',\n",
       "    'rectag': '砂锅粥',\n",
       "    'keytag': '砂锅粥',\n",
       "    'rating': '4.1'},\n",
       "   'photos': [{'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0d37c6fca882dcf76df758b3d0618b29'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/18300a8e14621505428191a05429baa0'},\n",
       "    {'title': '',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2f738f8566215b92df0c8da17edfce23'}]}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1eed1353",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
